package nutella89.basic;

public class Charge {

	public static void main(String[] args) {
		// 잔돈 계산하는 프로그램
		int charge;
		int W10;
		int W50;
		int W100;
		int W500;
		int W1000;
		int W5000;
		int W10000;
		int W50000;
		int rest;
		
		// charge = 876543210;
		charge = 8_7654_3210;	// JDK7, 자릿수구분 _
		W50000 = charge / 50000;
		
		rest = charge - (W50000 * 50000);
		W10000 = rest / 10000;

		rest = rest - (W10000 * 10000);
		W5000 = rest / 5000;
		
	}

}




